<?php

class UserTable extends Doctrine_Table
{
   public function getUserByLogin($login) {
       $q = $this->createQuery('a')
		->where('a.login = ?',$login);
       return $q->fetchOne();
   }
}
